const jwt = require('express-jwt')
const {PRIVATE_KEY} = require('../utils/constant')

module.exports = jwt({
  secret: PRIVATE_KEY,
  credentialRequired:true,
  // algorithms:['HS256']
}).unless({
  path:[
    '/',
    '/user/login',
    // '/user/info'
  ]
})